package com.crmxconsumer.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.pojo.User;
import com.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {

    @Reference
    private UserService userService ;

    @RequestMapping("/userList")
    public List<User> getUserList() {
        return userService.getUserList() ;
    }

}
